package org.jprobe;

/**
 * Coverage Results implementation
 *
 * @author Hussain Al-Mutawa
 * @version 1.0
 */
public class CoverageResults implements CoverageResultsInterface {
	/** the project which host the results **/
	private transient final String project;
	/** coverage data **/
	private transient final double classCoverage,methodCoverage,blockCoverage,lineCoverage;
	/**
	 * initialize new coverage results object
	 * and prepare its values
	 *
	 * @param project the project for which coverage results are calculated
	 */
	public CoverageResults(final String project) {
		super();
		this.project=project;

		//dummy implementation
		classCoverage=0.97d;
		methodCoverage=0.80d;
		blockCoverage=0.62d;
		lineCoverage=0.65d;
	}

	@Override public String getProject() {
		return project;
	}

	@Override public double getClassCoverage() {
		return classCoverage;
	}

	@Override public double getMethodCoverage() {
		return methodCoverage;
	}

	@Override public double getBlockCoverage() {
		return blockCoverage;
	}

	@Override public double getLineCoverage() {
		return lineCoverage;
	}


}
